<!DOCTYPE html>
<html class="pixel-ratio-3 retina android android-5 android-5-1-1">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="">

    <link rel="stylesheet" href="../../lib/weui.min.css">
    <link rel="stylesheet" href="../../css/jquery-weui.css">
    <link rel="stylesheet" href="../../css/home.css">
    <link rel="stylesheet" href="../../plugins/fontaw/css/font-awesome.css">
<style>
    .border-1px{ border-right: 1px solid rgba(0,0,0,.1);}
    .border--btm-1px{ border-bottom: 1px solid rgba(0,0,0,.1);}
    .guaid-title{ display: block;}
    .guaid-num{ display: block;font-size: 2.1em;color: #0d0d0d}
    .guaid-img{float: left; margin-top: 35px; margin-left: 32.5px;margin-right: 10px;color: #737372}
    .right-link{float:right;clear: both}
    .right-link a{color:darkred}
    .red-border{border: darkred solid 1px;color:darkred;font-size: 10px;border-radius: 3px;padding:2px 3px;vertical-align: middle}
    .weui-panel__bd{font-size:0.8rem}
    .inquir-temp{padding:0.3rem}
    .item_block{
        width:100%;height: 5rem;border:lightgray solid 0.03rem; border-radius: 3%;margin-top: 0.3rem ;
        text-align: center;font-size: 0.6rem;color: grey;
    }
    .item_block h3{padding:0.3rem}
    .item_block p{padding:0.3rem}
    .inner-btn{padding:0.3rem 0.5rem; background-color: lightgray;border-radius: 5%;color: #0D0D0D}
    .weui-flex  i{font-size:1.5rem;}
</style>
</head>
<body ontouchstart>
<div class="weui-flex">
    <div class="weui-flex__item">
        <div class="home-header" >
            <h2>开方购药</h2>
        </div>
        <div class="weui-flex border--btm-1px" style="height: 5rem;color:#999">
            <div class="weui-flex__item border-1px">
                <div class="guaid-img" >
                    <i class="fa fa-graduation-cap" aria-hidden="true"></i>
                </div>
                <a href="prescribe_all.html#tab1">
                    <p style="padding:15px">
                       <span class="guaid-title">全部方案</span>
                       <span class="guaid-num guaid-num-all"></span>
                    </p>
                </a>
            </div>
            <div class="weui-flex__item">
                <div class="guaid-img" >
                    <i class="fa fa-truck" aria-hidden="true"></i>
                </div>
                <a href="prescribe_all.html#tab2">
                <p style="padding:15px">
                    <span class="guaid-title">配送中</span>
                    <span class="guaid-num guaid-num-carry"></span>
                </p>
                </a>
            </div>
        </div>


    </div>
</div>

<div class="weui-flex">
    <div class="weui-flex__item">
        <div class="weui-panel__ft">
            <a href="prescribe_my.html" class="weui-cell weui-cell_access weui-cell_link" >
                <div class="weui-cell__bd">
                    <img src="../images//userList.png" width="25px" style="vertical-align: bottom "/>
                    <span>我的常用方</span>
                </div>
                <span class="weui-cell__ft"></span>
            </a>
        </div>
    </div>
</div>
<div class="weui-flex">
    <div class="weui-flex__item">
        <div class="weui-panel__ft">
            <a href="prescribe_add.html" class="weui-cell weui-cell_access weui-cell_link" >
                <div class="weui-cell__bd">
                    <img src="../images//userList.png" width="25px" style="vertical-align: bottom "/>
                    <span>在线开方</span>
                </div>
                <span class="weui-cell__ft"></span>
            </a>
        </div>
    </div>
</div>

<script src="/lib/jquery-2.1.4.js"></script>
<script src="/lib/fastclick.js"></script>
<script src="/js/jquery-weui.js"></script>
<script src="/js/home.js"></script>
<script>
    $(function(){
        $.ajax({
            url:'/prescription/countAllPrescriptions',
            type:"GET",
            success:function(data){
                $('.guaid-num-all').text(data);
            }
        });

        $.ajax({
            url:'/prescription/countCarryPrescriptions',
            type:"GET",
            success:function(data){
                $('.guaid-num-carry').text(data);
            }
        });
    });
</script>
</body>
</html>